/**
 * @flow
 */
import React, { Component } from 'react';
import {Image,View,Dimensions} from 'react-native';
import Navigator from './Navigator';

export default class LaunchImage extends Component {
    constructor(props){
        super(props);
        this.state = {
            launch:true
        };
    }

    componentDidMount(){
        setTimeout(() => {this.setState({launch:false})},2000);
    }
    
    render() {
        // if(this.state.launch){
        //     return (
        //         <Image source={require('../image/launchimage.png')} style={{width:Dimensions.get("window").width,height:Dimensions.get("window").height}}/>
        //     );
        // }
        return (
            <Navigator/>
        );
    }
}
